Visual Basic (Declaration) | |
---|---|
Public Overridable Sub CopyTo( _ ByVal array() As T, _ ByVal arrayIndex As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual void CopyTo( T[] array, int arrayIndex ) |
Managed Extensions for C++ | |
---|---|
public: virtual void CopyTo( T[]* array, int arrayIndex ) |
C++/CLI | |
---|---|
public: virtual void CopyTo( array<T>^ array, int arrayIndex ) |
Parameters
- array
- The one-dimensional array that is the destination of the elements copied from the current collection.
- arrayIndex
- The index at which copying begins.
For an example, refer to Generic RasterCollection.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family